{{include "share/header"}}
  <div class="h50"></div>
  <div id="nav">
    <nav class="nav">
      <!-- 用户下拉 -->
      <div class="user-info" style="display: none">
        <a href="javascript:;">个人资料</a>
        <a href="javascript:;">退出</a>
      </div>
      <div class="logo">多牛传媒</div>
      <div class="user">
        <span class="asksrc">
      <span class="glyphicon glyphicon-plus"></span>提问</span>&#x3000;
        <span class="user-name"><span class="glyphicon glyphicon-user"></span></span>
      </div>
    </nav>
  </div>
  <main>
    <ul class="messages">
    {{each data as ask}}
      <li class="ask" data-id="{{ask.id}}">
        <img src="{{ask.createUser.photo}}" alt="" class="user-photo fl" width="64" height="64" onerror="src='images/photo_default.jpg'">
        <h2 class="h2-title">{{ask.createUser.name}}</h2>
        <p class="ptext">{{ask.text}}</p>
        <p class="ptime">{{ask.createTime | formatTime}}</p>
      </li>
      {{each ask.answers as answer}}
        <li class="answer">
          <img src="{{answer.createUser.photo}}" alt="" class="user-photo" width="64" height="64" onerror="src='images/photo_default.jpg'">
          <h2 class="h2-title">{{answer.createUser.name}}</h2>
          <p class="ptext">{{answer.text}}</p>
          <p class="ptime">{{answer.createTime | formatTime}}</p>
        </li>
      {{/each}}
    {{/each}}
    </ul>
  </main>
{{include "share/footer"}}
